package cn.suimg.neo4j.graph;

import cn.suimg.neo4j.annotation.DynamicQuery;
import cn.suimg.neo4j.annotation.OriginalId;
import cn.suimg.neo4j.relationship.IncludeRelationship;
import lombok.Data;
import org.neo4j.ogm.annotation.GeneratedValue;
import org.neo4j.ogm.annotation.Id;
import org.neo4j.ogm.annotation.NodeEntity;

import java.util.Date;

@Data
@NodeEntity(label = "专辑")
@DynamicQuery(relationship = IncludeRelationship.class,graph = SongGraph.class)
public class AlbumGraph implements NeoGraph {

    @Id
    @GeneratedValue
    private Long id;

    @OriginalId
    private Integer albumId;

    /**
     * 专辑名称
     */
    private String name;

    /**
     * 专辑封面地址
     */
    private String avatarUrl;

    /**
     * 歌手ID
     */
    private Integer singerId;

    /**
     * 发布时间
     */
    private Date publishTime;

    /**
     * 专辑简介
     */
    private String intro;

}
